#include "LanguageSymbols.h"
#include <cassert>
#include <iostream>
#include <fstream>
using namespace std;

int main(int argc, char** argv)
{
    Symbols a('a');
    Symbols c(SymbolTypes::ANY_TYPE, "$ANY");
    Symbols e("start");

    ofstream o("/tmp/1");
    a.Save(o);
    c.Save(o);
    e.Save(o);
    o.close();

    Symbols b;
    Symbols d;
    Symbols f;

    ifstream i("/tmp/1");
    b.Load(i);
    d.Load(i);
    f.Load(i);
    i.close();

    assert(a == b);
    assert(c == d);
    assert(e == f);

}